package com.easy.west.westclient.api.login.api;

import com.easy.west.westclient.api.login.bean.User;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 *
 * Created by xiatao on 2018/7/31.
 */

public interface LoginService
{
    /***
     *
     * 登录
     * @param usm
     * @param pwd
     * @return
     */
    @GET("users/login/{username}/{pwd}")
    Call<User> login(@Path("username") String usm,@Path("pwd") String pwd);

    /**
     * 查找用户
     * @param id
     * @return
     */
    @GET("users/find/{id}")
    Call<User> finduser(@Path("id")int id);
}
